<template>
  <div class="footer">
    <p>{{ icp }}</p>
  </div>
</template>

<script>
import { ref } from "vue";
import { webSite } from "@/api";
export default {
  setup() {
    const icp = ref();
    webSite().then((res) => {
      document.title = res.data[0].website_name;
      icp.value = res.data[0].ipc;
    });
    return { icp };
  },
};
</script>

<style lang="scss" scoped>
.footer {
  width: 100%;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 20px;

  p {
    font-size: 10px;
    margin-bottom: 4px;
    color: #cdcdcd;
  }
}
</style>